<div ng-controller="CustomformCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'自定义表单'| translate}}</li>
        <li class="active">
            {{"List"|translate}}
            <a href="#/customform/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right">
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'表单编号'|translate}}</th>
                <th>{{'表单名称'|translate}}</th>
                <th>{{'表单说明'|translate}}</th>
                <th>{{'表单类型'|translate}}</th>
                <th>{{'是否启用'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in customform_list">
                <td>{{list.form_id}}</td>
                <td>{{list.form_name}}</td>
                <td>{{list.form_msg}}</td>
                <td>
                    <form-type ng-model="list.type" stype="1"></form-type>
                </td>
                <td>{{list.display == 1?"是":"否"}}</td>
                <td>
                    <a href="#/customform/add?form_id={{list.form_id}}" class="sui-btn btn-primary">{{'edit'|translate}}</a>
                    <a href="#/customform/typelist?form_id={{list.form_id}}" class="sui-btn btn-primary">{{'选项列表'|translate}}</a>
                    <a href="#/customform/datalist?form_id={{list.form_id}}&&type={{list.type}}" ng-if="list.type == 'diaochawenjuan' || list.type == 'baoming'" class="sui-btn btn-primary">表单数据</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="total_count" get-data="getCustomFormList(pageNo)"></pager>
    <!-- 分页end -->
</div>